//***********************************************************************
//  PP2_5.java         Author: Tang caiming
//
//  Demonstrates the use of the Scanner class to read numeric data.
//***********************************************************************

import java.util.Scanner;

public class PP2_6
{
   //--------------------------------------------------------------------
   //  Calculates fuel efficiency based on values entered by the 
   //  user.
   //--------------------------------------------------------------------
   public static void main(String[] args)
   {
      double miles;
      double kilometer;

      Scanner scan = new Scanner(System.in);

      System.out.print("Enter the number of miles:");
      miles = scan.nextDouble();
      
      kilometer = miles / 1.60935;

      System.out.println("转换结果: " + kilometer);
   }
}
